<?php

class Admin_SettingsInputView extends BlogAdminBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd, 'blog');
		$ro = $this->getContext()->getRouting();
		
		$form_params = array('blog_name' => WereWordConfig::get('blog.name'),
		    'blog_index_posts_count' => WereWordConfig::get('blog.index_posts_count'),
		    'owner_login' => WereWordConfig::get('blog.owner_login'),
		    'owner_display_name' => WereWordConfig::get('blog.owner_name'),
		    'owner_email' => WereWordConfig::get('blog.owner_email'), 
		    'links_applet_links' => WereWordConfig::get('blog.applet.links.links_list'),
		    'counters_analytics' => WereWordConfig::get('blog.counters_analytics'), 
		    'openid_server' => WereWordConfig::get('blog.openid_server'),
		    'openid_server_delegate' => WereWordConfig::get('blog.openid_server_delegate'),
		);
		
		$this->getContext()->getRequest()->setAttribute('populate',
            new AgaviParameterHolder($form_params),
            'org.agavi.filter.FormPopulationFilter');
		
		$this->setAttribute('submit_route', $ro->gen('settings.edit'));
		$this->setAttribute('title', 'Edit blog settings');
	}
}

?>
